home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Tool Chest / Files / XTND 1.3.6 / Translator Examples / MacWrite Translator / MacWriteExport.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-02  |  1.6 KB  |  69 lines  |  [TEXT/MPS ]

  1. /************************************************************************
  2. *                                                                        *
  3. *    MacWriteExport.h                                                    *
  4. *                                                                        *
  5. *    Header for the MacWrite v5.0 export translator.                        *
  6. *                                                                        *
  7. *    Copyright © 1988, 89, 90, 91 Claris Corporation                        *
  8. *    All Rights Reserved                                                    *
  9. *                                                                        *
  10. *    Author: Richard Scorer                                                *
  11. *    Date:   13 April, 1988                                                *
  12. *                                                                        *
  13. ************************************************************************/
  14.  
  15. #ifndef _H_MWExportHdr_
  16. #define _H_MWExportHdr_
  17.  
  18.  
  19. /* MacWrite Paragraph */
  20. typedef struct {
  21.     Boolean    ruler;
  22.     long    filePos, pagePos;
  23.     short    length, height;
  24.     short    justification;
  25. } ParagraphInfo,*ParagraphPtr,**ParagraphHandle;
  26.  
  27.  
  28. /* MacWrite Formats */
  29. typedef struct {
  30.     short    filePos;
  31.     Byte    pointSize, styleSet;
  32.     short    fontNum;
  33. } FormatInfo,*FormatPtr,**FormatHandle;
  34.  
  35.  
  36. /* MacWrite Ruler */
  37. typedef struct {
  38.     short    left, right;
  39.     Byte    justification, numTabs;
  40.     short    spacing, indentation, theTabs[10];
  41.     long    dummy;
  42. } RulerInfo,*RulerPtr,**RulerHandle;
  43.  
  44.  
  45. /* MacWrite LineHeights */
  46. typedef struct {
  47.     short    nBytes;        /* Number of bytes for this line height entry */
  48.     short    lHeight;    /* Line height*/
  49. } LineInfo, *LinePtr, **LineHandle;
  50.  
  51.  
  52. /* box types used for header, footers and footnotes */
  53. #define kNone                0
  54. #define kHeader                1
  55. #define kFooter                2
  56. #define kFootnote            3
  57.  
  58.  
  59.  
  60. /* types of pages for headers/footers */
  61. #define EveryPage            1
  62. #define LeftPage            2
  63. #define RightPage            4
  64. #define LeftAndRightPage    6
  65.  
  66.  
  67. #define    ISSPECIALCHAR(z)    (((z)>=pageNumber&&(z)<= footnoteChar)||((z)>= shortDateChar&&(z)<=timeChar))
  68.  
  69. #endif